Optimal. Leaf size=54 \[ \frac {1}{4 a b (a-b x)^2}+\frac {1}{4 a^2 b (a-b x)}+\frac {\tanh ^{-1}\left (\frac {b x}{a}\right )}{4 a^3 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.136, Rules used = {641, 46, 214}
\begin {gather*} \frac {\tanh ^{-1}\left (\frac {b x}{a}\right )}{4 a^3 b}+\frac {1}{4 a^2 b (a-b x)}+\frac {1}{4 a b (a-b x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 214
Rule 641
Rubi steps
\begin {align*} \int \frac {(a+b x)^2}{\left (a^2-b^2 x^2\right )^3} \, dx &=\int \frac {1}{(a-b x)^3 (a+b x)} \, dx\\ &=\int \left (\frac {1}{2 a (a-b x)^3}+\frac {1}{4 a^2 (a-b x)^2}+\frac {1}{4 a^2 \left (a^2-b^2 x^2\right )}\right ) \, dx\\ &=\frac {1}{4 a b (a-b x)^2}+\frac {1}{4 a^2 b (a-b x)}+\frac {\int \frac {1}{a^2-b^2 x^2} \, dx}{4 a^2}\\ &=\frac {1}{4 a b (a-b x)^2}+\frac {1}{4 a^2 b (a-b x)}+\frac {\tanh ^{-1}\left (\frac {b x}{a}\right )}{4 a^3 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 62, normalized size = 1.15 \begin {gather*} \frac {2 a (2 a-b x)-(a-b x)^2 \log (a-b x)+(a-b x)^2 \log (a+b x)}{8 a^3 b (a-b x)^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.46, size = 63, normalized size = 1.17
method | result | size |
risch | \(\frac {-\frac {x}{4 a^{2}}+\frac {1}{2 b a}}{\left (-b x +a \right )^{2}}-\frac {\ln \left (-b x +a \right )}{8 a^{3} b}+\frac {\ln \left (b x +a \right )}{8 a^{3} b}\) | \(55\) |
default | \(\frac {\ln \left (b x +a \right )}{8 a^{3} b}-\frac {\ln \left (-b x +a \right )}{8 a^{3} b}+\frac {1}{4 a^{2} b \left (-b x +a \right )}+\frac {1}{4 a b \left (-b x +a \right )^{2}}\) | \(63\) |
norman | \(\frac {\frac {3 x}{4}-\frac {x^{3} b^{2}}{4 a^{2}}+\frac {a}{2 b}}{\left (-b^{2} x^{2}+a^{2}\right )^{2}}-\frac {\ln \left (-b x +a \right )}{8 a^{3} b}+\frac {\ln \left (b x +a \right )}{8 a^{3} b}\) | \(67\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 67, normalized size = 1.24 \begin {gather*} -\frac {b x - 2 \, a}{4 \, {\left (a^{2} b^{3} x^{2} - 2 \, a^{3} b^{2} x + a^{4} b\right )}} + \frac {\log \left (b x + a\right )}{8 \, a^{3} b} - \frac {\log \left (b x - a\right )}{8 \, a^{3} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.95, size = 89, normalized size = 1.65 \begin {gather*} -\frac {2 \, a b x - 4 \, a^{2} - {\left (b^{2} x^{2} - 2 \, a b x + a^{2}\right )} \log \left (b x + a\right ) + {\left (b^{2} x^{2} - 2 \, a b x + a^{2}\right )} \log \left (b x - a\right )}{8 \, {\left (a^{3} b^{3} x^{2} - 2 \, a^{4} b^{2} x + a^{5} b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.15, size = 58, normalized size = 1.07 \begin {gather*} - \frac {- 2 a + b x}{4 a^{4} b - 8 a^{3} b^{2} x + 4 a^{2} b^{3} x^{2}} - \frac {\frac {\log {\left (- \frac {a}{b} + x \right )}}{8} - \frac {\log {\left (\frac {a}{b} + x \right )}}{8}}{a^{3} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.93, size = 60, normalized size = 1.11 \begin {gather*} \frac {\log \left ({\left | b x + a \right |}\right )}{8 \, a^{3} b} - \frac {\log \left ({\left | b x - a \right |}\right )}{8 \, a^{3} b} - \frac {a b x - 2 \, a^{2}}{4 \, {\left (b x - a\right )}^{2} a^{3} b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.06, size = 51, normalized size = 0.94 \begin {gather*} \frac {\mathrm {atanh}\left (\frac {b\,x}{a}\right )}{4\,a^3\,b}-\frac {\frac {x}{4\,a^2}-\frac {1}{2\,a\,b}}{a^2-2\,a\,b\,x+b^2\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________